package com.wyl.pmd.rule.errorprone;

import com.wyl.pmd.model.SomeException;

public class AvoidInstanceofChecksInCatchClause {

	public static void main(String[] args) {
		
		// bad
		try {
		    // do something
		} catch (Exception ee) {
		    if (ee instanceof SomeException) {
		    	// do something
		    }
		}

		// good
		try {  
		    // do something IO
		} catch (SomeException ee) {
			// do something
		}
		
	}
	
}
